import { axios } from '@/utils/request'

/**
 * xx专业违章趋势
 * @param {*} parameter
 * @returns
 */
export function getVioSpecialtyTrendAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationSpecialityAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 关键作业
 * @param {*} parameter
 * @returns
 */
export function getVioKeyWorkAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationKeyWorkTypeAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 违章性质
 * @param {*} parameter
 * @returns
 */
export function getViolationTypeAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationViolationTypeAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 通用/专业
 * @param {*} parameter
 * @returns
 */
export function getVioTypeCategoryAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationViolationTypeCategoryAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 违章岗位
 * @param {*} parameter
 * @returns
 */
export function getVioPositionAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationPostionAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 违章区域
 * @param {*} parameter
 * @returns
 */
export function getVioLocationAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationLocationAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 违章原因
 * @param {*} parameter
 * @returns
 */
export function getVioCauseAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationViolationCauseAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 归属直线部门
 * @param {*} parameter
 * @returns
 */
export function getVioDirectDepartmentAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationDirectDepartmentAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 体系要素
 * @param {*} parameter
 * @returns
 */
export function getVioHSEElementAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationHSEElementAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 工龄
 * @param {*} parameter
 * @returns
 */
export function getVioWorkYearsAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationWorkYearsAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 年龄
 * @param {*} parameter
 * @returns
 */
export function getVioAgeAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationAgeAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 用工性质
 * @param {*} parameter
 * @returns
 */
export function getVioEmployeeTypeAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationEmployeeTypenAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 违章类别
 * @param {*} parameter
 * @returns
 */
export function getVioSpecialtyCategoryAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationSpecialtyCategoryAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 人的不安全行为
 * @param {*} parameter
 * @returns
 */
export function getVioUnsafeBehaviorAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationSpecialtyRDBAQXWAnalysis',
    method: 'post',
    data: parameter
  })
}

/**
 * 管理缺陷
 * @param {*} parameter
 * @returns
 */
export function getVioManageDefectAnalysis (parameter) {
  return axios({
    url: '/QHSEXyViolation/ViolationSpecialtyGLQXAnalysis',
    method: 'post',
    data: parameter
  })
}
